package com.factorymethod;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author fanxiao  2021/10/12
 * @since 1.0.0
 */
@Slf4j
public class AppTest {

  public static void main(String[] args) {
	  //
	  AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
	  Foo foo = applicationContext.getBean(Foo.class);
	  foo.foo();
  }
}
